package com.xjl.service.impl;

import com.xjl.domain.Myweathers;
import com.xjl.mapper.MyWeatherMapper;
import com.xjl.service.MyWeatherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyWeatherServiceImpl implements MyWeatherService {
    @Autowired
    private MyWeatherMapper myWeatherMapper;

    @Override
    public void insertWeatherStation(Myweathers myweathers) {
        myWeatherMapper.insertWeatherStation(myweathers);
    }

    @Override
    public Myweathers QueryWeatherStation(String time) {
        Myweathers myweather=myWeatherMapper.QueryWeatherStation(time);
        return myweather;
    }
}
